unit FActualizaBBDD;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls, ZSqlProcessor;

type
  TFormActualizaBBDD = class(TForm)
    Label1: TLabel;
    mScript: TMemo;
    BtnEjecutar: TButton;
    ZSQLProcessor: TZSQLProcessor;
    pBotones: TPanel;
    procedure BtnEjecutarClick(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FormActualizaBBDD: TFormActualizaBBDD;

implementation

{$R *.dfm}
uses
  ModDatos;

procedure TFormActualizaBBDD.BtnEjecutarClick(Sender: TObject);
begin
  ZSQLProcessor.Script.Clear;
  ZSQLProcessor.Script.AddStrings( mScript.Lines);
  ZSQLProcessor.Execute;
end;

end.
